#pragma once

#include "comm/znx_defs.h"

#define ZNX_HTTP_READ_HEADER_TIMEOUT                    (ZNX_HTTP_ERRNO_START - 1)
#define ZNX_HTTP_READ_HEADER_FAILED                     (ZNX_HTTP_ERRNO_START - 2)
#define ZNX_HTTP_INVALID_REQUEST_LINE                   (ZNX_HTTP_ERRNO_START - 3)
#define ZNX_HTTP_INVALID_REQUEST_URI                    (ZNX_HTTP_ERRNO_START - 4)
#define ZNX_HTTP_CONNECT_METHOD_NO_SUPPORT              (ZNX_HTTP_ERRNO_START - 5)
#define ZNX_HTTP_INVALID_HEADER_LINE                    (ZNX_HTTP_ERRNO_START - 6)
#define ZNX_HTTP_CLIENT_CLOSE_IN_READ_HEADER            (ZNX_HTTP_ERRNO_START - 7)
#define ZNX_HTTP_BIG_HEADER_LINE                        (ZNX_HTTP_ERRNO_START - 8)
#define ZNX_HTTP_REQUEST_HEADER_TOO_LARGER              (ZNX_HTTP_ERRNO_START - 9)
#define ZNX_HTTP_REQUEST_HAS_INVALID_HEADER             (ZNX_HTTP_ERRNO_START - 10)
#define ZNX_HTTP_NO_SUPPORT_VERSION_9                   (ZNX_HTTP_ERRNO_START - 11)
#define ZNX_HTTP_REQUEST_INVALID_HOST                   (ZNX_HTTP_ERRNO_START - 12)
#define ZNX_HTTP_ERR_NOT_IMPLEMENTED                    (ZNX_HTTP_ERRNO_START - 13)
#define ZNX_HTTP_INVALID_CONTENT_LENGTH_HEADER          (ZNX_HTTP_ERRNO_START - 14)
#define ZNX_HTTP_READ_BODY_TIMEDOUT                     (ZNX_HTTP_ERRNO_START - 15)
#define ZNX_HTTP_CLIENT_CLOSE_IN_READ_BODY              (ZNX_HTTP_ERRNO_START - 16)
#define ZNX_HTTP_INVALID_CHUNK_LINE                     (ZNX_HTTP_ERRNO_START - 17)
#define ZNX_HTTP_INVALID_AFTER_BODY_LINE                (ZNX_HTTP_ERRNO_START - 18)
#define ZNX_HTTP_CLENT_CLOSE_IN_READ_TRAILERS           (ZNX_HTTP_ERRNO_START - 19)
#define ZNX_HTTP_INVALID_TRAILERS_HEADER                (ZNX_HTTP_ERRNO_START - 20)
#define ZNX_HTTP_READ_TRAILERS_TIMEDOUT                 (ZNX_HTTP_ERRNO_START - 21)
#define ZNX_HTTP_RESPONSE_NO_BODY                       (ZNX_HTTP_ERRNO_START - 22)
#define ZNX_HTTP_SEND_RESPONSE_FAILED                   (ZNX_HTTP_ERRNO_START - 23)
#define ZNX_HTTP_CLIENT_CLOSE_IN_SEND_RESPONSE          (ZNX_HTTP_ERRNO_START - 24)
#define ZNX_HTTP_WRITE_BODY_TIMEDOUT                    (ZNX_HTTP_ERRNO_START - 25)
#define ZNX_HTTP_SERVER_CLOSE_IN_SEND_REQUEST           (ZNX_HTTP_ERRNO_START - 26)
#define ZNX_HTTP_SEND_REQUEST_FAILED                    (ZNX_HTTP_ERRNO_START - 27)
#define ZNX_HTTP_RESPONSE_HEADER_TOO_LARGER             (ZNX_HTTP_ERRNO_START - 28)
#define ZNX_HTTP_SERVER_CLOSE_IN_READ_HEADER            (ZNX_HTTP_ERRNO_START - 29)
#define ZNX_HTTP_INVALID_RESPONSE_LINE                  (ZNX_HTTP_ERRNO_START - 30)